class BankCardItemEntity {
  String? id;
  String? bankCard;
  String? bankName;
  String? icon;
  int? cardType;

  BankCardItemEntity({this.id, this.bankCard, this.bankName, this.cardType,this.icon=''});

  BankCardItemEntity.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    bankCard = json['bankCard'];
    bankName = json['bankName'];
    cardType = json['cardType'];
    icon = json['icon'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['id'] = id;
    data['bankCard'] = bankCard;
    data['bankName'] = bankName;
    data['cardType'] = cardType;
    data['icon'] = icon;
    return data;
  }
}
